﻿@model EM.OA.Portal.Models.NetFolderModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/NetFolder.js"></script>
<div>
    @*list*@
    <table id="list" toolbar="#toolbar">
    </table>
    <div id="toolbar">
        <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
    </div>

    @*Detail*@
    <div id="dlg" class="easyui-dialog" style="width: 350px; height: 300px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resizable="true">
        <div id="dlg-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.NetFolderID)
            <table>
                <tr>
                    <td>@Html.LabelFor(m => m.NetFloderName)</td>
                    <td>@Html.TextBoxFor(m => m.NetFloderName, new { @class = "easyui-validatebox", @Required = "true", @validType = "length[1,150]" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.NetFolderPath)</td>
                    <td>@Html.TextBoxFor(m => m.NetFolderPath, new { @class = "easyui-validatebox", @Required = "true", @validType = "length[1,150]" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.NetFolderParentID)</td>
                    <td>
                        <input type="hidden" id="NetFolderParentID" name="NetFolderParentID" />
                        <input id="comb_NetFolderParentName" class="easyui-combotree"
                            data-options="url:'/NetFolder/GetTreeList',required:true,
                        onSelect: function(rec){  
                            $('#NetFolderParentID').val(rec.id); }" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.PowerUserIDs)</td>
                    <td>
                        <input type="hidden" id="PowerUserIDs" name="PowerUserIDs" />
                        <input class="easyui-validatebox" type="text" id="PowerUserIDsName" name="PowerUserIDsName" data-options="required:true" /><a href="#" class="easyui-linkbutton" iconcls="icon-search" onclick="GetUserList()" plain="true">选择</a></td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.PowerRoleIDs)</td>
                    <td>
                        <input type="hidden" id="PowerRoleIDs" name="PowerRoleIDs" />
                        <input class="easyui-validatebox" type="text" id="PowerRoleIDsName" name="PowerRoleIDsName" data-options="required:true" /><a href="#" class="easyui-linkbutton" iconcls="icon-search" onclick="GetUserList()" plain="true">选择</a></td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.PowerDepartmentIDs)</td>
                    <td>
                        <input type="hidden" id="PowerDepartmentIDs" name="PowerDepartmentIDs" />
                        <input class="easyui-validatebox" type="text" id="PowerDepartmentIDsName" name="PowerDepartmentIDsName" data-options="required:true" /><a href="#" class="easyui-linkbutton" iconcls="icon-search" onclick="GetUserList()" plain="true">选择</a></td>
                </tr>
            </table>
        </form>
    </div>

</div>
@Html.Partial("_OrgUserPartial", new List<object> { false, "PowerUserIDs", "PowerUserIDsName" })
